const weeks = Object.freeze(['天', '一', '二', '三', '四', '五', '六']);

export const genOptions = (length: number, addNumber = 0) =>
  Array.from({ length }, (_: any, index: number) => ({
    label: index + addNumber,
    value: index + addNumber,
  }));

export const genWeeks = () => {
  return Array.from({ length: 7 }, (_, index) => {
    return {
      label: `星期${weeks[index]}`,
      value: index + 1,
    };
  });
};
